go/parser.parser.error (method)

35 uses

	go/parser (current package)
		parser.go#L126: 		p.error(p.pos, "exceeded max nesting depth")
		parser.go#L280: func (p *parser) error(pos token.Pos, msg string) {
		parser.go#L318: 	p.error(pos, msg)
		parser.go#L346: 		p.error(p.pos, "missing ',' before newline in "+context)
		parser.go#L388: 		p.error(p.pos, msg+" in "+context)
		parser.go#L593: 		p.error(p.pos, "unexpected comma; expecting ]")
		parser.go#L638: 				p.error(trailingComma, "unexpected comma; expecting ]")
		parser.go#L690: 			p.error(p.pos, "cannot parenthesize embedded type")
		parser.go#L704: 		p.error(p.pos, "cannot parenthesize embedded type")
		parser.go#L956: 			p.error(errPos, msg)
		parser.go#L1005: 			p.error(errPos, msg)
		parser.go#L1017: 					p.error(t.Ellipsis, "can only use ... with final parameter")
		parser.go#L1019: 					p.error(t.Ellipsis, "invalid use of ...")
		parser.go#L1078: 		p.error(rbrack, "empty type parameter list")
		parser.go#L1119: 			p.error(tparams.Opening, "function type must have no type parameters")
		parser.go#L1153: 				p.error(lbrack, "interface method must have no type parameters")
		parser.go#L1610: 				p.error(colons[0], "middle index required in 3-index slice")
		parser.go#L1614: 				p.error(colons[1], "final index required in 3-index slice")
		parser.go#L1782: 				p.error(t.Pos(), "cannot parenthesize type in composite literal")
		parser.go#L1983: 		p.error(colon, "illegal label declaration")
		parser.go#L2007: 		p.error(x.Pos(), fmt.Sprintf("expression in %s must not be parenthesized", callType))
		parser.go#L2015: 		p.error(x.End(), fmt.Sprintf("expression in %s must be function call", callType))
		parser.go#L2092: 	p.error(s.Pos(), fmt.Sprintf("expected %s, found %s (missing parentheses around composite literal?)", want, found))
		parser.go#L2101: 		p.error(p.pos, "missing condition in if statement")
		parser.go#L2114: 			p.error(p.pos, "var declaration not allowed in if initializer")
		parser.go#L2144: 			p.error(semi.pos, "unexpected newline, expecting { after if clause")
		parser.go#L2146: 			p.error(semi.pos, "missing condition in if statement")
		parser.go#L2227: 				p.error(t.TokPos, "expected ':=', found '='")
		parser.go#L2531: 		p.error(pos, "import path must be a string")
		parser.go#L2534: 		p.error(pos, "missing import path")
		parser.go#L2805: 			p.error(tparams.Opening, "method must have no type parameters")
		parser.go#L2821: 			p.error(p.pos, "unexpected semicolon or newline before {")
		parser.go#L2894: 		p.error(p.pos, "invalid package name _")
		parser.go#L2917: 					p.error(p.pos, "imports must appear before other declarations")
		parser.go#L2938: 		declErr = p.error